package com.issac.mapper;

import com.issac.dto.ContractDto;
import com.issac.dto.MiddleTabDto;
import com.issac.entity.Contract;
import com.issac.vo.ContractVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName ContractMapper
 * @Author zy
 * @Date 2022/6/23 9:25
 * @Description ContractMapper
 * @Version 1.0
 */
@Repository
public interface ContractMapper {

    void createContract(@Param("con") Contract con);

    void insertMiddleTab(@Param(value = "list") List<MiddleTabDto> middleList);

    void updateContract(@Param("contractDto") ContractDto contractDto);

    void deleteMidTabByCId(String contractId);

    void deleteMidTabByFId(String fruitId);

    void deleteContractByCId(String contractId);

    List<ContractVo> queryAllContract();

    Contract queryContract(String id);
}
